<?php
include_once('components/user/class_user.php');

$mauser = "";
if(isset($_REQUEST['mauser']))
	$mauser = $_REQUEST['mauser'];
	
$activecode = "";
if(isset($_REQUEST['activecode']))
	$activecode = $_REQUEST['activecode'];
	

$us = new XuLy_User();
$kq = $us->ktactive($mauser,$activecode);
if($kq['TrangThai']==0)
{
	$us->active($kq['MaUser']);
	echo "<h3 align='left' style='color:Blue'>Kích hoạt thành công</h3>
	<a href=index.php? > Về trang chủ </a>";
}
else
{
	if($kq['TrangThai']==1)
		header("Location:index.php");
	else
		echo "<h3 align='left' style='color:Red'>Kích hoạt thất bại</h3>";
}
?>